display date time twig

143

display date time twig -

// date
{{ post.published_at|date("m/d/Y") }}

// date time
{{ post.published_at|date('Y-m-d H:i:s') }}

Comments

Submit
0 Comments